package com.kmxd.ams.app.system;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kmxd.ams.client.system.ISysRoleArchiveSvc;
import com.kmxd.ams.infra.system.entity.SysRoleArchive;
import com.kmxd.ams.infra.system.mapper.SysRoleArchiveMapper;
import java.util.List;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 角色档案库权限配置 服务实现类
 *
 * @author ZuoLG
 * @since 2022-10-22
 */
@Service
@AllArgsConstructor
public class SysRoleArchiveSvcImpl extends ServiceImpl<SysRoleArchiveMapper, SysRoleArchive>
    implements ISysRoleArchiveSvc {

  private SysRoleArchiveMapper sysRoleArchiveMapper;

  @Override
  public List<SysRoleArchive> selectByComId(Long comId) {
    return list(Wrappers.lambdaQuery(SysRoleArchive.class).eq(SysRoleArchive::getComId, comId));
  }
}
